import static org.junit.Assert.*;

import org.junit.Test;
import org.openqa.selenium.firefox.FirefoxDriver;
import java.io.IOException;
import java.util.List;

import junit.framework.Assert;

import org.openqa.selenium.By;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.firefox.FirefoxDriver;



public class TestPrac {

	@Test
	public void test() {
FirefoxDriver driver= new FirefoxDriver();
	
		
		String URL="https://www.statefarm.com/";
		WebElement Regassert=driver.findElement(By.xpath("//*[@id='login-box-bottom']")).findElement(By.linkText("Register"));
		String regURL="https://online2.statefarm.com/registration/register.do";
		//assertEquals("https://online2.statefarm.com/registration/register.do",Regassert.getAttribute("href"));
	if (regURL.equalsIgnoreCase("Regassert")){
		System.out.println("PAss");
	}else
		System.out.println("Fail");

	}
		
	

}

		

